// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import vuex from 'vuex'
import VueQuillEditor from 'vue-quill-editor'
import JsonExcel from 'vue-json-excel'
import './filter/filter'
import 'babel-polyfill'

import ElementUI from 'element-ui'

import './style/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import PrintJs from './store/print.js'
import notify from './store/resetMessage.js'

Vue.use(ElementUI)
Vue.use(vuex)
Vue.use(VueQuillEditor)
Vue.use(PrintJs)
Vue.prototype.$notify = notify
Vue.component('downloadExcel', JsonExcel)

Vue.config.productionTip = false

/* eslint-disable no-new */
const vue = new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})

export default vue
